<div class="easyui-layout" data-options="fit:true">
	<div data-options="region:'center',border:false">
		<!-- Begin of toolbar -->
		<div id="menu-toolbar">
			<div class="menu-toolbar-button">
				<a href="#" class="easyui-linkbutton" iconCls="icon-add" dialog-options="url:'${root!}/system/menu/openadd',style:'width: 400px; padding: 10px;'" onclick="common_save(this)"
					plain="true">添加</a>
					<a href="#" class="easyui-linkbutton editbtn" iconCls="icon-edit" dialog-options="url:'${root!}/system/menu/openadd',style:'width: 400px; padding: 10px;',src:'${root!}/system/menu/edit'" onclick="common_save(this)"
					plain="true">修改</a>
					 <a href="#" class="easyui-linkbutton"
					iconCls="icon-remove" onclick="common_del(this)"  dialog-options="url:'${root!}/system/menu/delete'" plain="true">删除</a> <a href="#"
					class="easyui-linkbutton" iconCls="icon-reload" onclick="common_refresh(this)" plain="true">刷新</a>
			</div>
			<div class="menu-toolbar-search">
				<form id="menu-search-form" method="post">
					<label>菜单级别：</label> <select class="easyui-combobox"
						name="menu.level" panelHeight="auto" style="width: 130px"
						editable='false'>
						<option value="">全部</option>
						<option value="0">主菜单</option>
						<option value="1">功能菜单</option>
					</select> <label>菜单名称：</label><input name="menu.menuName" class="wu-text"
						style="width: 100px"> <a href="#"
						class="easyui-linkbutton" iconCls="icon-search"
						onclick="menu_onsubmit()">查询</a>
				</form>
			</div>
		</div>
		<!-- End of toolbar -->
		<table id="menu-datagrid" class="easyui-datagrid" data-options="total:10,pageSize:10"
			toolbar="#menu-toolbar"></table>
	</div>
</div>
<script type="text/javascript">

	/**
	 * Name 载入数据
	 */
	$('#menu-datagrid').datagrid({
		url : 'system/menu/getdata',
		rownumbers : true,
		singleSelect : false,
		pageSize : 10,
		pagination : true,
		multiSort : true,
		fitColumns : true,
		fit : true,
		columns : [ [ {
			checkbox : true
		}, {
			field : 'id',
			title : '菜单编号',
			hidden : true,
			width : 100,
			sortable : true
		}, {
			field : 'menuName',
			title : '菜单名称',
			width : 100,
			sortable : true
		}, {
			field : 'url',
			title : '菜单链接',
			width : 180,
			sortable : true
		}, {
			field : 'level',
			title : '菜单类别',
			width : 100
		}, {
			field : 'icon',
			title : '图标',
			width : 100
		}, ] ]
	});
</script>